﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%= TempData["Message"]%>    
    <div id="cactionbutton">
        <button type="button" id="btnRefesh" title="Refesh" class="button refresh">
            Làm mới</button>       
    </div>    
    <div class="clist">
        <table id="list" class="scroll">
        </table>
        <div id="pager" class="scroll" style="text-align: center;">
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageTitle" runat="server">
    TSV - Partner
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="/Scripts/jquery.validate.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            jQuery("#list").jqGrid({
                url: '/Promotion/GetListPromotionJQGrid',
                datatype: 'json',
                mtype: 'GET',
                colNames: ['ID', 'Hình Ảnh', 'Thông Tin Khuyến Mãi','Vị Trí','Chức Năng'],
                colModel: [
                  { name: 'ID', index: 'ID', align: "center", width: 50, hidden: true },
                  { name: 'Image', index: 'Image', align: "center", width: 60, sortable: false },
                  { name: 'Title', index: 'Title', align: "left", width: 100, sortable: true },
                  { name: 'PromotionOrder', index: 'PromotionOrder', align: "center", width: 60, sortable: true },
                  { name: 'Action', index: 'Action', align: "center", width: 60, sortable: false}],
                pager: jQuery('#pager'),
                rowList: [20, 30, 50, 100, 200],
                sortname: 'PartnerOrder',
                sortorder: "desc",
                multiselect: true,
                viewrecords: true,
                width: 1000, height: "100%",
                imgpath: '/scripts/grid/themes/basic/images',
                loadui: 'block'
            });            
            $("#btnRefesh").click(function () {
                window.location = "/Administration/Promotion/Index";
            });            
        });        
    </script>
    <style type="text/css">
        .ui-jqgrid tr.jqgrow td
        {
            white-space: normal;
        }
    </style>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ModuleName" runat="server">
    Thông Tin Khuyến Mãi
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="FunctionTitle" runat="server">
    Thông Tin Khuyến Mãi
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="LoginRoles" runat="server">
</asp:Content>